package com.jxmcloud.business.cut.service.user;

import com.jxmcloud.business.cut.dto.gm.AccountItemDto;
import com.jxmcloud.business.cut.dtoCommon.BagInfoDto;
import com.jxmcloud.business.cut.vo.user.PlayerInfoVo;

import java.util.List;

public interface IUserBagService extends IUserService {
    boolean addItem(PlayerInfoVo player, Integer id, Integer count);                        // 添加道具
    boolean revertAddItem(PlayerInfoVo player, Integer id, Integer count);                  // 添加道具
    boolean addAward(PlayerInfoVo player, BagInfoDto bagAward);                             // 添加奖励
    boolean delLotteryItem(PlayerInfoVo player);                                            // 扣除抽奖道具

    void addScorePool(PlayerInfoVo player, Integer addScore);                               // 添加隐藏池子分

    Integer getScorePool(PlayerInfoVo player);                                              // 获取隐藏池子分

    boolean delItem(PlayerInfoVo player, Integer id, Integer count);     // 删除道具

    Integer getItemCount(PlayerInfoVo player, Integer id);               // 获取道具数量

    boolean checkItemCount(PlayerInfoVo player, Integer id, Integer count); //检测道具数量是否足够

    List<BagInfoDto> packBagData(PlayerInfoVo player);

    /**
     * 清空背包
     * @param player
     */
    void cleanBag(PlayerInfoVo player);

    void batchAddItem(PlayerInfoVo player, AccountItemDto accountItemDto);
}
